﻿
using System.Data.Entity.ModelConfiguration;
using Entity.ProjectEnt;

namespace Logic.Map.Project
{
    public class CarriageMap : EntityTypeConfiguration<CarriageEntity>
    {
        public CarriageMap()
        {
            this.ToTable("Carriage");
            this.HasKey(t => t.F_Id);
            Property(p => p.F_CreatorUserId).HasMaxLength(50);
            Property(p => p.F_LastModifyUserId).HasMaxLength(50);
            Property(p => p.F_DeleteUserId).HasMaxLength(50);

            Property(p => p.CarriageID).HasMaxLength(30);
            Property(p => p.Capacity).HasPrecision(18, 2);
            Property(p => p.CarType).HasMaxLength(100);
            Property(p => p.Remark).HasMaxLength(300);

            Property(p => p.PathWay).HasMaxLength(50);
            Property(p => p.ThingsName).HasMaxLength(100);
            Property(p => p.Customers).HasMaxLength(100);
            Property(p => p.FenHao).HasMaxLength(50);
            Property(p => p.ThingsCount).HasPrecision(18, 2);
            Property(p => p.Weight).HasPrecision(18, 2);
        }
    }
}
